@import './common.less';
.navbar {
    // height: 60px;
    background: #000;
    .navbar-brand{
      display: inline-block;
      text-align: center;
      cursor: pointer;
      #logo{
        width: 38px;
        height: 38px;
      }
      span{
        color: #4689BF;
        font-weight: 700;
        padding-left: 10px;
      }
    }
    // 控制在手机端小导航样式
    @media only screen and (max-width: 360px) and (max-height: 670px) {
      .collapse{
          overflow-y: scroll;
          height: 90vh;
      }
    }
  }

  .form-control.is-invalid {
    border-color: #ccc;
  }

  #main {
    margin-right: 0;
    display: flex;

      #leftnav{
        #side-theme{
          width: 0;
          height: 100%;
        }
        #side {
          // flex: 0 0 200px;
          width: 200px;
          transform: translateX(-200px);
          position: fixed;
          top: 0;
          bottom: 0;
          z-index: 9;
          box-shadow: 1px 0 2px rgba(13, 124, 182,0.15);
          background: #08262E;
          background: linear-gradient(#000000 0%, #000203 80%);
          .side_list {
            width: 100%;
            font-size: 15px;
            margin-top: 64px;
            .list-group-item{
              border: none;
              &:after {
                  content: "";
                  width: 100%;
                  height: 100%;
                  position: absolute;
                  bottom: 0;
                  left: 0;
                  z-index: -1;
                  /*设置元素基点位置*/
                  transform-origin: center;
                  /*设置元素X轴缩放*/
                  transform: scaleX(0);
                  /*延时变化*/
                  transition: all 1000ms ease;
                  /*hover时变化*/
                  border: 1px solid rgba(27, 141, 202, 0.4);
                  // box-sizing: border-box;
                  box-shadow: 0px 0px 8px rgba(93, 154, 187, 0.87) inset;
              }

              &:hover:after {
                  /*hover之后再使元素X轴放大1倍*/
                  transform: scaleX(1);
              }
            }
            .list-group a {
              color: #fff;
              background: none;
              display: flex;
              align-items: center;
              justify-content: center;

              span {
                padding: 0 6px;
              }
            }
          }
        }
    }
  }

  #content {
    flex: 100%;
    height: 100vh;
    margin-top: 60px;
    &>div{
      height: 100%;
    }
    #content-theme{
      position: fixed;
      top: 0;
      width: 100%;
      bottom: 0;
      z-index: -9;
      background: #0f3854;
      background: @theme;
    }
    @media screen and (max-width: 1070px){
      #content-theme{width: 100%;}
    }
    // 首要展示页
    .index_page {
      width: 100%;
      // height: 100%;
      height: 100vh;
      .index_warpper {
        max-width: 606px;
        width: 100%;
        transform: translateY(-40%);
      }
      
      #title {
        color: #4689BF;
        font: bold 42px 'KaiTi';
        text-align: center;
        // overflow: hidden;
        // white-space: nowrap;
        // text-overflow: ellipsis;
        cursor: pointer;
      }
      .search {
        position: relative;
        max-width: 606px;
        width: 100%;
        margin: auto;
        font-size: 20px;

        // 警告框
        .alertBox {
          width: 100%;
          position: absolute;
          top: 116%;
          z-index: 9;

          .alert {
            width: 100%;
            max-width: 500px;
          }
        }
      }

      .search_box {
        position: relative;
        display: flex;
        width: 100%;
        height: 38px;
        margin: auto;
        border: 1px solid #007ACC;
        border-radius: 38px;
      }

      .search_box input {
        width: 90%;
        color: #056AB2;
        height: 100%;
        font-size: 20px;
        padding: 0 22px 2px 0;
        border: none;
        outline: none;
        background: none;
      }
      @media screen and (max-width: 500px){
        #title {font-size: 28px;}
        .search_box input,.search_box{font-size: 16px;}
      }
      #clear {
        position: absolute;
        color: #ababab;
        top: 6px;
        right: 76px;
        cursor: pointer;
      }

      #clear:hover {
        color: orangered;
      }

      #search {
        flex: 1;
        width: 100%;
        min-width: 75px;
        height: 100%;
        color: white;
        line-height: 36px;
        text-align: center;
        background: #4689BF;
        border-radius: 0 38px 38px 0;
        cursor: pointer;
      }

      #search:hover {
        background: #5693bd;
      }

      #more {
        margin-top: 15px;
        
        .more_list {
          display: flex;
          justify-content: space-around;
          button {
            max-width: 178px;
            width: 100%;
            margin-top: 10px;
          }
        }

        .close {
          width: 100%;
          display: flex;
          justify-content: center;
          margin-top: 20px;
        }
        .card{background: none!important;}
        .card-title {
          //设置卡片的title颜色
          color: #555;
        }
      }
    }
    // 网站陈列表
    .list{
        height: 0;
    }
  }

  .tag_title {
    color: #007ACC;
    line-height: 24px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    span{
      padding: 5px;
    }
  }
  .nav_list{
    padding-bottom: 20px;
    a{display: block;}
    ul {
      margin: 20px 0 0 0;
      padding: 15px;
      border: 1px solid #4d90c4;
      // background: #fff;
      border-radius: 5px;
      height: 100px;
      overflow: hidden;
      cursor: pointer;
      h6{color: #056AB2;}
      p {
        color: #9a9a9a;
        font-size: 14px;
      }
      li>div>img{margin-top: 2px;}
    }
  }
  
  // 小导航
  .nav-item{
    font-size: 15px;
    a{color: #4689BF!important;font-weight: 700;}
  }
  // 控制大导航状态按钮
  #side_tip{
    position: fixed;
    top: 34%;
    left: 0;
    width: 25px;
    height: 55px;
    line-height: 52px;
    text-align: center;
    color: rgb(42, 114, 153);
    font-size: 20px;
    // background: linear-gradient(-45deg,rgba(160, 205, 230, 0.5),rgba(39, 136, 189,1),rgba(39, 136, 189,0.7));
    border: 1px solid rgba(13, 124, 182, 0.1);
    border-radius: 3px 0 0 3px;
    box-sizing: border-box;
    box-shadow: 0px 0px 8px rgb(41, 85, 109) inset;
    cursor: pointer;
    z-index: 9;
  }